package com.example.lala.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.lala.R;
import com.example.lala.bean.Data;

import java.util.List;

public class DataAdapter extends BaseQuickAdapter<Data.DataBean, BaseViewHolder> {
    public DataAdapter(int layoutResId, @Nullable List<Data.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Data.DataBean item) {
        String usercount = String.valueOf(item.getUsercount());
        helper.setText(R.id.tv,usercount+"人");
        helper.setText(R.id.tv1,item.getTotalamount()+"元" );
    }
}
